#ifndef ASGKA_NETWORK_H
#define ASGKA_NETWORK_H

#include "singleMember.h"
#include "messageBase.h"

bool sendMessageBySocket(const messageBase *message, SOCKET sock);
bool sendMessageByNetAddr(const messageBase *message, struct sockaddr_in netaddr);

bool sendMessageToMember_tcp(const messageBase *message, const singleMember *member);
bool sendMessageToMember_udp(const messageBase *message, const singleMember *member);

bool broadcastMessage(const messageBase *message);

#endif